﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:a="clr-namespace:HomeUX.ClientAppSupport;assembly=HomeUX.ClientLibrary"
    xmlns:c="clr-namespace:HomeUX.Controls;assembly=HomeUX.ClientLibrary"
    xmlns:m="clr-namespace:HomeUX.MusicClientLibrary;assembly=HomeUX.MusicClientLibrary"
    xmlns:local="clr-namespace:HomeUX.ClientApp"
	x:Class="HomeUX.ClientApp.Page">
    <Grid x:Name="LayoutRoot" Background="Gray" HorizontalAlignment="Left" VerticalAlignment="Top" Width="800" Height="600">
        
        <Grid.RenderTransform>
            <ScaleTransform x:Name="PageTransform" />
        </Grid.RenderTransform>
        
        <Grid VerticalAlignment="Top" Height="70">
            
            <c:ClientStatus x:Name="ClientStatus" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,4,4,0" />

            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,5,0,0">
                <c:TouchButton x:Name="HomeButton">
                    <StackPanel>
						<c:HomeIcon Margin="0,0,0,2"/>
						<TextBlock Margin="0,-5,0,0">Home</TextBlock>
					</StackPanel>
                </c:TouchButton>
                <c:TouchButton x:Name="BackButton" IsEnabled="False" Margin="5,0,0,0">
					<StackPanel>
						<TextBlock FontFamily="Resources/Symbol.ttf#Symbol" FontSize="22" Margin="3,-5,0,0">&#172;</TextBlock>	
						<TextBlock Margin="0,-5,0,0">Back</TextBlock>
					</StackPanel>
                </c:TouchButton>
            </StackPanel>
            
            <c:TouchTabStrip x:Name="ScreenChooser" VerticalAlignment="Bottom" ItemMinWidth="60" LeftGapWidth="125" Margin="5,0,5,0">
                <!-- The following elements define the screens of the application.  Any element may be
                     used - e.g. <Ellipse Fill="Red" Width="20" Height="20" /> causes the tab label to
                     be a red circle.  Within each element:
                       - The Tag identifies the name of the screen, for use in calls such as GoToScreen.
                         One screen must have a Tag of "ConnectionSettingsScreen" - this is the screen that
                         ClientFramework will navigate to if connection settings are missing or the
                         password is incorrect.
                       - For <TextBlock> elements: Width, if specified, is the width of the label.
                         If Width isn't specified, the label will be as wide as its content.
                       - If Visibility="Collapsed" is specified, the screen is still available for
                         use, but it will not have a tab.  For such screens,
                         a:ScreenTab.DefaultParentName="<screen-name>" can be used to specify that,
                         by default, when the screen is displayed, it is shown as being a child of the
                         screen specified by <screen-name>.
                       - a:ScreenTab.Label can be used to specify a label that's used in places
                         where a simple text label is needed.
                -->
                
                <Grid Tag="AlertsScreen" a:ScreenTab.Label="Alerts">
                    <a:ScreenTab.ScreenControl>
                        <a:AlertsScreen />
                    </a:ScreenTab.ScreenControl>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition />
                    </Grid.RowDefinitions>
                    <c:InformationIcon x:Name="AlertsTabInformationIcon" Grid.Row="0" Visibility="Collapsed" />
                    <c:WarningIcon x:Name="AlertsTabWarningIcon" Grid.Row="0" Visibility="Collapsed" />
                    <TextBlock Text="Alerts" Grid.Row="1" />
                </Grid>
                
                <TextBlock Tag="LivingAreaScreen">
                    <a:ScreenTab.ScreenControl>
                        <local:LivingArea />
                    </a:ScreenTab.ScreenControl>
                    Living<LineBreak/>Area
                </TextBlock>

                <TextBlock Tag="LaAvScreen" Text="Living Area A/V" Visibility="Collapsed" a:ScreenTab.DefaultParentName="LivingAreaScreen">
                    <a:ScreenTab.ScreenControl>
                        <local:LaAv />
                    </a:ScreenTab.ScreenControl>
                </TextBlock>
                
                <TextBlock Tag="LaAvDetailsScreen" Text="Living Area A/V Details" Visibility="Collapsed" a:ScreenTab.DefaultParentName="LivingAreaScreen">
                    <a:ScreenTab.ScreenControl>
                        <local:LaAvDetails />
                    </a:ScreenTab.ScreenControl>
                </TextBlock>

                <TextBlock Tag="MasterSuiteScreen">
                    <a:ScreenTab.ScreenControl>
                        <local:MasterSuite />
                    </a:ScreenTab.ScreenControl>
                    Master<LineBreak/>Suite
                </TextBlock>
                
                <TextBlock Tag="MsAvScreen" Visibility="Collapsed" a:ScreenTab.DefaultParentName="MasterSuiteScreen">
                    <a:ScreenTab.ScreenControl>
                        <local:MsAv />
                    </a:ScreenTab.ScreenControl>
					Master Suite A/V
                </TextBlock>

                <TextBlock Tag="GameRoomScreen">
                    <a:ScreenTab.ScreenControl>
                        <local:GameRoom />
                    </a:ScreenTab.ScreenControl>
                    Game<LineBreak/>Room
                </TextBlock>

                <TextBlock Tag="GrAvScreen" Visibility="Collapsed" a:ScreenTab.DefaultParentName="GameRoomScreen">
                    <a:ScreenTab.ScreenControl>
                        <local:GrAv />
                    </a:ScreenTab.ScreenControl>
					Game Room A/V
                </TextBlock>

                <TextBlock Tag="GuestAreaScreen">
                    <a:ScreenTab.ScreenControl>
                        <local:GuestArea />
                    </a:ScreenTab.ScreenControl>
                    Guest<LineBreak/>Area
                </TextBlock>
                
                <TextBlock Tag="GeneralScreen">
                    <a:ScreenTab.ScreenControl>
                        <local:General />
                    </a:ScreenTab.ScreenControl>
                    General
                </TextBlock>
                
                <TextBlock Tag="GenAudioScreen" Visibility="Collapsed" a:ScreenTab.DefaultParentName="GeneralScreen">
                    <a:ScreenTab.ScreenControl>
                        <local:GenAudio />
                    </a:ScreenTab.ScreenControl>
                    General Audio
                </TextBlock>

                <TextBlock Tag="ToolsScreen">
                    <a:ScreenTab.ScreenControl>
                        <a:ToolsScreen />
                    </a:ScreenTab.ScreenControl>
                    Tools
                </TextBlock>
                
                <TextBlock Tag="ConnectionSettingsScreen" Text="Connection Settings" Visibility="Collapsed" a:ScreenTab.DefaultParentName="SettingsScreen">
                    <a:ScreenTab.ScreenControl>
                        <a:ConnectionSettingsScreen />
                    </a:ScreenTab.ScreenControl>
                </TextBlock>

                <TextBlock Tag="DevicesScreen" Text="Devices" Visibility="Collapsed" a:ScreenTab.DefaultParentName="SettingsScreen">
                    <a:ScreenTab.ScreenControl>
                        <a:DevicesScreen />
                    </a:ScreenTab.ScreenControl>
                </TextBlock>
                
                <TextBlock Tag="Music Server Library" Text="Music Library" Visibility="Collapsed"
                           a:ScreenTab.InitArgs="MusicDevice=Music Server">
                    <a:ScreenTab.ScreenControl>
                        <m:MusicLibraryScreen />
                    </a:ScreenTab.ScreenControl>
                </TextBlock>

                <TextBlock Tag="Music Server Artist" Text="(Music Artist)" Visibility="Collapsed"
                           a:ScreenTab.InitArgs="MusicDevice=Music Server" a:ScreenTab.DisableDirectNavigation="True">
                    <a:ScreenTab.ScreenControl>
                        <m:MusicArtistScreen />
                    </a:ScreenTab.ScreenControl>
                </TextBlock>

                <TextBlock Tag="Music Server Album" Text="(Music Album)" Visibility="Collapsed"
					       a:ScreenTab.InitArgs="MusicDevice=Music Server" a:ScreenTab.DisableDirectNavigation="True">
                    <a:ScreenTab.ScreenControl>
                        <m:MusicAlbumScreen />
                    </a:ScreenTab.ScreenControl>
                </TextBlock>

                <TextBlock Tag="Music Server Search" Text="Music Search" Visibility="Collapsed"
					       a:ScreenTab.InitArgs="MusicDevice=Music Server">
                    <a:ScreenTab.ScreenControl>
                        <m:MusicSearchScreen />
                    </a:ScreenTab.ScreenControl>
                </TextBlock>

                <TextBlock Tag="Music Server Found Artists" Text="(Music Found Artists)" Visibility="Collapsed"
				           a:ScreenTab.InitArgs="MusicDevice=Music Server">
                    <a:ScreenTab.ScreenControl>
                        <m:MusicFoundArtistsScreen />
                    </a:ScreenTab.ScreenControl>
                </TextBlock>

                <TextBlock Tag="Music Server Found Albums" Text="(Music Found Albums)" Visibility="Collapsed"
				           a:ScreenTab.InitArgs="MusicDevice=Music Server">
                    <a:ScreenTab.ScreenControl>
                        <m:MusicFoundAlbumsScreen />
                    </a:ScreenTab.ScreenControl>
                </TextBlock>

                <TextBlock Tag="Music Server Found Tracks" Text="(Music Found Tracks)" Visibility="Collapsed"
				           a:ScreenTab.InitArgs="MusicDevice=Music Server">
                    <a:ScreenTab.ScreenControl>
                        <m:MusicFoundTracksScreen />
                    </a:ScreenTab.ScreenControl>
                </TextBlock>

                <TextBlock Tag="Music Server Queue" Text="Music Queue" Visibility="Collapsed"
				           a:ScreenTab.InitArgs="MusicDevice=Music Server">
                    <a:ScreenTab.ScreenControl>
                        <m:MusicQueueScreen />
                    </a:ScreenTab.ScreenControl>
                </TextBlock>

                <TextBlock Tag="Music Server Load Playlist" Text="Load Playlist" Visibility="Collapsed"
				           a:ScreenTab.InitArgs="MusicDevice=Music Server">
                    <a:ScreenTab.ScreenControl>
                        <m:MusicLoadPlaylistScreen />
                    </a:ScreenTab.ScreenControl>
                </TextBlock>

                <TextBlock Tag="Music Server Save Queue" Text="Save Queue" Visibility="Collapsed"
				           a:ScreenTab.InitArgs="MusicDevice=Music Server">
                    <a:ScreenTab.ScreenControl>
                        <m:MusicSaveQueueScreen />
                    </a:ScreenTab.ScreenControl>
                </TextBlock>
                
            </c:TouchTabStrip>
            
        </Grid>

        <Grid x:Name="ScreenArea" VerticalAlignment="Bottom" Height="530" Background="Aquamarine">
            <Grid.Clip>
                <RectangleGeometry Rect="0,0,800,530" RadiusX="5" RadiusY="5" />
            </Grid.Clip>
        </Grid>

    </Grid>

</UserControl>
